-- Return the element before the last element from a list.

lastButOne xs = last (take (length xs - 1) xs)
